package com.hp.dao;

import com.hp.pojo.Chat;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ChatMapper {
    public int addChatFrame(Chat chat);

    public int delChatFrame(Chat chat);

//    public int updateChatFrame(Map map);

    public Chat selectOneChatFrame(Chat chat);

    public List<Chat> selectChatFrames(int userId);

    public int delGroupChatFrames(int groupId);
}
